package Tools;

import org.junit.Test;

public class convert {
    public static String toBrackets(String str) {
        String s = str.replace("[", "{");
        return s.replace("]", "}");
    }

    @Test
    public void testToBrackets() {
        String str = "[[2,6],[2,4,5,6],[0,1,3,5,6],[2],[1,5,6],[1,2,4],[0,1,2,4]]";

        System.out.println(toBrackets(str));
    }
}


